package cn.com.db.dto;


import cn.com.util.JsonUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: yue
 * Date: 2018-03-26
 * Time: 20:11
 * Description:diywork创建时传递的参数
 */
public class DiyWorkArg {
    private List<Arg> embryo=new ArrayList<>();
    private List<Arg> parts=new ArrayList<>();
    private List<Arg> surface=new ArrayList<>();
    private List<Arg> deck=new ArrayList<>();
    private String taste;

    public List<Arg> getEmbryo() {
        return embryo;
    }

    public void setEmbryo(List<Arg> embryo) {
        this.embryo = embryo;
    }

    public List<Arg> getParts() {
        return parts;
    }

    public void setParts(List<Arg> parts) {
        this.parts = parts;
    }

    public List<Arg> getSurface() {
        return surface;
    }

    public void setSurface(List<Arg> surface) {
        this.surface = surface;
    }

    public List<Arg> getDeck() {
        return deck;
    }

    public void setDeck(List<Arg> deck) {
        this.deck = deck;
    }

    public String getTaste() {
        return taste;
    }

    public void setTaste(String taste) {
        this.taste = taste;
    }

    @Override
    public String toString() {
        return "DiyWorkArg{" +
                "embryo=" + embryo +
                ", parts=" + parts +
                ", surface=" + surface +
                ", deck=" + deck +
                '}';
    }

    public static void main(String[] args) {
        List<Arg> decks=new ArrayList<>();
        List<Arg> embryos=new ArrayList<>();
        List<Arg> partses=new ArrayList<>();
        List<Arg> surfaces=new ArrayList<>();
        Arg deck=new Arg("d35415ab04e647118a8ff35f92fcf95c",2);
        Arg embryo=new Arg("cb09f60d521c48e6839f0b85a05e2f64",1);
        Arg parts=new Arg("fee54bcd20484419a7b6e7ad9be6ee7a",2);
        Arg surface=new Arg("1e9fba4a412945049445cdc180de1475",2);
        decks.add(deck);
        embryos.add(embryo);
        partses.add(parts);
        surfaces.add(surface);
        String taste="eb59003976fd48feb4caf1cdc1024440";
        DiyWorkArg diyWorkArg=new DiyWorkArg();
        diyWorkArg.setDeck(decks);
        diyWorkArg.setEmbryo(embryos);
        diyWorkArg.setParts(partses);
        diyWorkArg.setSurface(surfaces);
        diyWorkArg.setTaste(taste);
        System.out.println(JsonUtil.toJsonString(diyWorkArg));
    }
}

